#!/bin/bash

# 设置环境变量
export MACA_PATH=/opt/maca/
export PATH=${MACA_PATH}/mxgpu_llvm/bin:${MACA_PATH}/bin:${PATH}
export LD_LIBRARY_PATH=${MACA_PATH}/lib:${MACA_PATH}/mxgpu_llvm/lib:${LD_LIBRARY_PATH}
# Iterate all the cases in the folder and plot comparison figures
for src in *.maca 
do
    name=${src%.maca }
    echo "$name"
    KERNEL=$name make_maca output
done
make plot
